import request from "@/utils/request";

export default {
  // get请求
  // ?scope=generic&pageSize=300&sortField=id&sortOrder=DESC
  add: async (opts) => await request.post("/paper", opts),
  getList: async (opts) =>
    await request.get("/paper/list", { params: opts }),
  getDetail: async (id) => await request.get("/paper/list?id=" + id),
  put: async (id, opts) =>
    await request.put("/paper?id=" + id, opts),
};
